import {
  Http
} from '../utils/http.js'

class BookModule extends Http{
  hotList(callBack){
    this.request({
      url: 'book/hot_list',
      success: (res) => {
        callBack(res)
      }
    })
  }
  hotKeyword(callBack) {
    this.request({
      url: 'book/hot_keyword',
      success: (res) => {
        callBack(res)
      }
    })
  }

  search(data,callBack) {
    this.request({
      url: 'book/search',
      data: data,
      success: (res) => {
        callBack(res)
      }
    })
  }
}
export {BookModule}